package com.mingrisoft;


import android.app.Activity;
import android.content.Context;
import android.view.View;
import android.view.inputmethod.InputMethodManager;

/**
 * Created by susu on 2024/3/9.
 */
public class ViewUtil {
    public static  void hideOneInputMethod(Activity act,View v){
        //获取系统中输入法管理器
        InputMethodManager imm=(InputMethodManager)act.getSystemService(Context.INPUT_METHOD_SERVICE);
        //关闭屏幕上的输入法键盘
        imm.hideSoftInputFromWindow(v.getWindowToken(),0);
    }
}
